import request from '@/utils/request'

// 查询用户动态点赞列表
export function listParise(query) {
  return request({
    url: '/system/parise/list',
    method: 'get',
    params: query
  })
}

// 查询用户动态点赞详细
// export function getParise(pariseId) {
//   return request({
//     url: '/system/parise/' + pariseId,
//     method: 'get'
//   })
// }
//http://192.168.0.100:8082/manage/system/userParise/getDynamicIdInfo/1
export function getParise(query) {
  return request({
    url: '/system/userParise/getDynamicIdInfo/'+query.dynamicId,
    method: 'get',
    params: query
  })
}

// 新增用户动态点赞
export function addParise(data) {
  return request({
    url: '/system/parise',
    method: 'post',
    data: data
  })
}

// 修改用户动态点赞
export function updateParise(data) {
  return request({
    url: '/system/parise',
    method: 'put',
    data: data
  })
}

// 删除用户动态点赞
export function delParise(pariseId) {
  return request({
    url: '/system/parise/' + pariseId,
    method: 'delete'
  })
}

// 导出用户动态点赞
export function exportParise(query) {
  return request({
    url: '/system/parise/export',
    method: 'get',
    params: query
  })
}
